<template>
  <el-drawer v-model="drawer.visible" size="100%" :before-close="close">
    <vue-monaco-editor v-if="showEdit" v-model="designOption"></vue-monaco-editor>
  </el-drawer>

</template>
<script>
import {deepClone} from "utils/util";

export default {
  name: "editFormCodeDrawer",
  data() {
    return {
      drawer: {
        visible: false
      },
      showEdit: false,
      designOption: null,

    }
  },
  methods: {
    show(designOption) {
      this.designOption = deepClone(designOption)
      this.drawer.visible = true;
      this.$nextTick(() => this.showEdit = true)
    },
    submitEvent() {

    },
    close() {

    }
  }
}
</script>


<style scoped>

</style>
